import request from '@/utils/request'

// 查询拆迁备案列表
export function listProjectRemoval (query) {
  return request({
    url: '/projectManage/projectRemoval/list',
    method: 'get',
    params: query
  })
}

// 查询拆迁备案详细
export function getProjectRemoval (id) {
  return request({
    url: '/projectManage/projectRemoval/' + id,
    method: 'get'
  })
}

// 审批
export function approve (data) {
  return request({
    url: '/projectManage/projectRemoval/approve',
    method: 'post',
    data: data
  })
}

// 新增拆迁备案
export function addProjectRemoval (data) {
  return request({
    url: '/projectManage/projectRemoval',
    method: 'post',
    data: data
  })
}

// 修改拆迁备案
export function updateProjectRemoval (data) {
  return request({
    url: '/projectManage/projectRemoval',
    method: 'put',
    data: data
  })
}

// 删除拆迁备案
export function delProjectRemoval (id) {
  return request({
    url: '/projectManage/projectRemoval/' + id,
    method: 'delete'
  })
}
